@(paymentList: List[Payment])(implicit lang: Lang)

@if(paymentList.size()>0){
	<table class="table table-bordered table-striped table-hover">
		<thead>
			<tr>
				<th>@Messages("transaction.time")(lang)</th>
				<th>@Messages("transaction.movie")(lang)</th>
				<th>@Messages("transaction.showtime")(lang)</th>
				<th>@Messages("transaction.house")(lang)</th>
				<th>@Messages("transaction.seat")(lang)</th>
				<th>@Messages("transaction.price")(lang)</th>										
			</tr>
		</thead>
		<tbody>
			@paymentList.map { payment =>
				<tr>
					<td>@payment.paid_time.format("dd/MM/yyyy hh:mm aaa")</td>
					<td>@payment.session.movie.infos.get(0).name</td>
					<td>@payment.session.showtime.format("dd/MM/yyyy hh:mm aaa")</td>
					<td>@payment.session.house.id</td>
					<td>@payment.seat_no</td>
					<td>$@payment.session.price</td>				
				</tr>
			}
		</tbody>
	</table>
} else {
	<p class="unavailable" >@Messages("transaction.noItem")(lang)</p>
}